package com.delu.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 充值记录表
 * </p>
 *
 * @author 6子的爹
 * @since 2021-12-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pay_rank")
@ApiModel(value="PayRank对象", description="消费记录表")
public class PayRank implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 充值记录ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 充值金额
     */
    private BigDecimal payMoney;

    /**
     * 流水号
     */
    private String serialNum;

    /**
     * 充值时间
     */
    private LocalDateTime createTime;

    /**
     * 消费金额
     */
    private BigDecimal consumerMoney;

    /**
     * 消费时间
     */
    private LocalDateTime consumerTime;

    /**
     * 用户ID
     */
    private Long userId;


    /**
     * 退款金额
     */
    private BigDecimal refundMoney;

    /**
     * 退款时间
     */
    private LocalDateTime refundTime;

    /**
     * 消费状态
     */
    private Integer status;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BigDecimal getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }

    public String getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public BigDecimal getConsumerMoney() {
        return consumerMoney;
    }

    public void setConsumerMoney(BigDecimal consumerMoney) {
        this.consumerMoney = consumerMoney;
    }

    public LocalDateTime getConsumerTime() {
        return consumerTime;
    }

    public void setConsumerTime(LocalDateTime consumerTime) {
        this.consumerTime = consumerTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public BigDecimal getRefundMoney() {
        return refundMoney;
    }

    public void setRefundMoney(BigDecimal refundMoney) {
        this.refundMoney = refundMoney;
    }

    public LocalDateTime getRefundTime() {
        return refundTime;
    }

    public void setRefundTime(LocalDateTime refundTime) {
        this.refundTime = refundTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public PayRank() {
    }

    public PayRank(Long id, BigDecimal payMoney, String serialNum, LocalDateTime createTime, BigDecimal consumerMoney, LocalDateTime consumerTime, Long userId, BigDecimal refundMoney, LocalDateTime refundTime, Integer status) {
        this.id = id;
        this.payMoney = payMoney;
        this.serialNum = serialNum;
        this.createTime = createTime;
        this.consumerMoney = consumerMoney;
        this.consumerTime = consumerTime;
        this.userId = userId;
        this.refundMoney = refundMoney;
        this.refundTime = refundTime;
        this.status = status;
    }
}
